package com.wpw.dream.future;

public class RealData implements Data {

	private Object result;
	
	private Object param;
	
	
	public RealData(Object param) {
		this.param = param;
	}
	
	@Override
	public Object getResult() {
		
		return result;
	}
	
	private void setResult(Object result) {
		this.result = result;
	}
	
	public void Handle() {
		try {
			//假装在忙
			Thread.sleep(3000);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		setResult(param.toString() + ": 处理结果");
	}
	
}
